package com.fangsiqi.mashibing;

public class SyncDemo {
	private static int value=0;
	public static synchronized void increment(){
		value++;
	}

	public static void decrement(){
		synchronized (SyncDemo.class) {
			value--;
		}
		// value--;
	}
	public static void main(String[] args) {
		System.out.println(SyncDemo.class);
	}
}
